<style lang="scss" scoped>
.content {
  padding-top: 60px;
  position: fixed;
  width: 100%;
  height: 100%;
  .scoll{
    height: calc(100% - 120px);
    overflow: auto;
  }
  .navbar {
    width: 100%;
    height: 40px;
    font-size: 14px;
    background-color: #fff;
    border-top: 1px solid #dadada;
    border-bottom: 1px solid #dadada;
    padding-left: 20px;
    .left {
      width: 283px;
      height: 40px;
      float: left;
      padding-right: 10px;
      border-right: 1px solid #dadada;
      padding-left: 4px;
      .nav {
        height: 30px;
        margin: 0 auto;
        margin-top:4px;
        border-radius: 15px;
        background-color: #f0efef;
        .z,
        .g {
          display: inline-block;
          width: 130px;
          height: 25px;
          margin-top: 2px;
          line-height: 25px;
          text-align: center;
          border-radius: 17.5px;
          color: #a1a1a1;
          cursor: pointer;
        }
        .g {
          width: 130px;
        }
        .active {
          color: #fff;
          margin: 0 4px;
          background-color: #4591ff;
        }
        .theKeyActive {
          color: #fff;
          margin: 0 4px;
          background-color: #5ABD0A;
        }
      }
    }
    .submit {
      float: right;
      font-size: 14px;
      height: 40px;
      line-height: 36px;
      padding-right: 3%;
      .t {
        display: inline-block;
        position: relative;
        right: 30px;
        top: 8px;
        width: 58px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        border-radius: 12px;
        background-color: #4591ff;
        color: #fff;
        cursor: pointer;
      }
    }
  }
  .center{
      max-width: 1366px;
      margin: 0 auto;
  }
  .section {
    max-width: 1366px;
    margin: 0 auto;
    font-size: 12px;
    padding-top:15px;
    .left {
      width: 280px;
      background: red;
      float: left;
      margin-left: 20px;
    }
    .right {
      margin-right: 20px;
    }
  }
  .detailed{
    position: fixed;
    right: 0;
    bottom: 10%;
    img{
      width: 76px;
      cursor: pointer;
    }
  }
}
::v-deep{
  .el-button--success{
    background-color: #5ABD0A;
    border-color: #5ABD0A;
  }
}
</style>
<template>
  <div class="content">
    <bxHeader />
    <bxTitle />
    <bxTab />
    <div class="scoll">
      <titleInfo :steps="false" />
      <div class="navbar">
        <div class="center">
          <div class="left">
            <div class="nav">
              <span class="z" :class="importantActive === true ? 'active' : ''" @click="theKeyClick()">重要任务</span>
              <span class="g" :class="importantActive === false ? 'theKeyActive' : ''" @click="theKeyClick()">关键指标</span>
            </div>
          </div>
          <div class="submit">
            <!-- <span class="t">提交</span> -->
            <el-button :type="importantActive ? 'primary' : 'success'" round>提交</el-button>
          </div>
        </div>
      </div>
      <div class="section">
        <checkSubordinates :important-active="!importantActive" />
      </div>
    </div>
    <div class="detailed">
      <img src="../../assets/img/detailed.png" alt="" @click="gotoPage()">
    </div>
    <sortTool />
  </div>
</template>
<script>
import bxHeader from '@/components/headerFooter/header'
import bxTab from '@/components/tab/index'
import bxTitle from '@/components/tab/title'
import titleInfo from '@/components/tab/titleInfo'
import sortTool from '@/components/tab/sortTool.vue'
import checkSubordinates from '@/views/dashboard/checkSubordinates'
export default {
  components: {
    bxHeader,
    bxTab,
    bxTitle,
    titleInfo,
    checkSubordinates,
    sortTool
  },
  data() {
    return {
      input: '',
      importantActive: true,
      isSort: false
    }
  },
  methods: {
    gotoPage() {
      this.$router.push({
        path: '/tracking'
      })
    },
    theKeyClick() {
      this.importantActive = !this.importantActive
    },
    sortWidth() {
      console.log('paixu')
      this.isSort = !this.isSort
    }
  }
}
</script>
